import java.util.ArrayList;
import java.util.List;

public class VendingMachine {

    // 售货机保存商品的列表
    List<Commodity> commodities = new ArrayList<>();
    // 记录售货机中商品原本的数量
    List<Integer> initiallyReserve = new ArrayList<>();
    private int money;
    private int pwd;
    private int revenue;

    public VendingMachine(int pwd) {
        this.pwd = pwd;
    }

    public List<Integer> getInitiallyReserve() {
        return initiallyReserve;
    }

    public void setInitiallyReserve(List<Integer> initiallyReserve) {
        this.initiallyReserve = initiallyReserve;
    }

    public int getRevenue() {
        return revenue;
    }

    public void setRevenue(int revenue) {
        this.revenue = revenue;
    }

    public int getPwd() {
        return pwd;
    }

    public void setPwd(int pwd) {
        this.pwd = pwd;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public List<Commodity> getCommodities() {
        return commodities;
    }

    public void setCommodities(List<Commodity> commodities) {
        this.commodities = commodities;
    }
}
